package com.facedemo.bean;

public class FaceFeature {
    public String personId;//人员id
    public int faceId;//人脸ID
    public byte[] feature;//特征码

    public boolean isSame(FaceFeature info) {
        return isSame(info.personId,info.faceId);
    }

    public boolean isSame(String pId,Integer fId) {
        if(!pId.equals(personId)) return false;
        if(fId.intValue() != faceId) return false;
        return true;
    }

    public boolean isSamePerson(String pId) {
        if(!pId.equals(personId)) return false;
        return true;
    }
}
